package likong.bibliothek.obj;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.ManyToAny;


public class Buch implements Serializable{
	Integer buchID;
	String titel;
	Language language;
	Set<Autor> autor= new HashSet<Autor>();
	BuchStatus status;
	Spender spender;

	
	@SuppressWarnings(value = { "unused" })
	public Buch() {
	}
	public Integer getBuchID() {
		return buchID;
	}
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	public void setBuchID(Integer buchID) {
		this.buchID = buchID;
	}

	public String getTitel() {
		return titel;
	}

	public void setTitel(String titel) {
		this.titel = titel;
	}

	public Language getLanguage() {
		return language;
	}

	public void setLanguage(Language language) {
		this.language = language;
	}

	public Set<Autor> getAuthor() {
		return autor;
	}
	public void setAuthor(Set<Autor> autor) {
		this.autor = autor;
	}

	public BuchStatus getStatus() {
		return status;
	}

	public void setStatus(BuchStatus status) {
		this.status = status;
	}
	public Spender getSpender() {
		return spender;
	}
	public void setSpender(Spender spender) {
		this.spender = spender;
	}
}
